VistaDB 6
VistaDB.DDA Namespace / IVistaDBKeyedCollection<TKey,TValue> Interface / TryGetValue Method
Key in collection to find
The output of the value


In This Topic
    TryGetValue Method (IVistaDBKeyedCollection<TKey,TValue>)
    In This Topic
    Try to get the value from the collection, if it does not exist returns false
    Syntax
    'Declaration
     
    
    Function TryGetValue( _
       ByVal key As TKey, _
       ByRef value As TValue _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As IVistaDBKeyedCollection(Of TKey,TValue)
    Dim key As TKey
    Dim value As TValue
    Dim value As System.Boolean
     
    value = instance.TryGetValue(key, value)
    System.bool TryGetValue( 
       TKey key,
       out TValue value
    )

    Parameters

    key
    Key in collection to find
    value
    The output of the value

    Return Value

    True is success
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also